package com.lagou.edu.feignservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("lagou-service-user")
@RequestMapping("/user")
public interface UserService {

    /**
     * 邮箱地址 根据token查询用户登录邮箱接口
     * @param token
     * @return
     */
    @GetMapping("/user/info/{token}")
    public String info(@PathVariable("token") String token);
}
